<?php
namespace app\admin\validate;
use think\validate;

class Article extends Validate
{  
    protected $rule=[
        'title'=>'require',
        'author'=>'require',
        'cateid'=>'require',
    ];

    protected $message = [
        'title'=>'小可爱标题必须填写哦',
        'author' =>'小可爱作者必须填写哦~~~~',
        'cateid' =>'小可爱所属栏目必须填写~~~~~~',

    ];

    protected $scene = [
        'add'=>['title','author','cateid'],
        'edit'=>['title','author','cateid'],
    ];
}

?>